<template>
    <div class="ProcessAdvice6" v-if="!isLook">
        <div class="shareHeadClass" >
            <p class="colCLas"></p>
            <p class="info">审核意见</p>
        </div>
        <el-form
            :model="$store.state.invoice2.invoinceFormAdvice6"
            :rules="rules"
            label-width="100px"
            class="formInline"
            size="small"
        >
            <el-row>
                <el-col :span="12">
                    <el-form-item  label="下一环节" prop="name">
                        <el-input :disabled="true" v-model="$store.state.invoice2.invoinceFormAdvice6.nextNodeName"></el-input>
                    </el-form-item>
                </el-col>

                <el-col :span="12">
                    <el-form-item label="即将流向"  >
                        <el-select
                            v-model="$store.state.invoice2.invoinceFormAdvice6.nextHandleUser"
                            :disabled="true"
                            placeholder="请选择"
                        >
                        <el-option
                            v-for="item  in $store.state.invoice2.invoinceFormAdvice6.handleUserList"
                            :key="item.userCode"
                                :label="item.fullName"
                                :value="item.userCode"
                            ></el-option>
                        </el-select>
                    </el-form-item>

                    
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="12">
                    <el-form-item label="审核结果" >
                          <el-radio-group v-model="$store.state.invoice2.invoinceFormAdvice6.handleResult">
                            <el-radio label="1">通过</el-radio>
                            <el-radio label="3">退回</el-radio>
                        </el-radio-group>
                    </el-form-item>
                </el-col>

       
            </el-row>

            <el-row>
                <el-col :span="24">
                    <el-form-item label="事项说明" :prop="$store.state.invoice2.invoinceFormAdvice6.handleResult == 3?'sxsm' : ''">
                        <el-input
                            type="textarea"
                            v-model="$store.state.invoice2.invoinceFormAdvice6.remark"
                            maxlength="500"
                            show-word-limit
                            :rows="7"
                        ></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>
    </div>
    <div v-else>

    </div>
</template>

<script>
export default {
    name: 'ProcessAdvice6',
    props: {
        isLook:{
            type:Boolean,
            default:false
        },
    },
    data() {
        return {
            rules: {
                sxsm: [
                    {
                        required: true,
                        message: '请输入',
                        trigger: 'change',
                    },
                ],
                time: [
                    {
                        required: true,
                        message: '请输入',
                        trigger: 'change',
                    },
                ],
                invoiceType: [
                    {
                        required: true,
                        message: '请选择',
                        trigger: 'change',
                    },
                ],
                direction: [
                    {
                        required: true,
                        message: '请选择',
                        trigger: 'change',
                    },
                ],
            },
        }
    },
    created(){
        try {
            let obj = JSON.parse(
                sessionStorage.getItem('handleDetailInfo')
            )
            this.getSix(obj.busId)
        } catch (error) {
            
        }
        
    },
    methods:{
        getSix( busId ) {
            this.$store.dispatch('invoice2/getSix', busId)
        },
    }
}
</script>

<style lang = "scss" scoped>
.ProcessAdvice6 {
    .formInline {
        width: 100%;
        :deep .el-form-item--small{ 
            margin-bottom: 4px;
        }
    }
}
</style>
